package com;


public class Teacher{
    public static void main(String[]args){
        T t = new T();
        t.Teacher("you");
    }
}

class T {

    private String name = "zhang";    // 教师名称
    private double salary;    // 工资
    private int age;    // 年龄

    public void Teacher(String name) {
        System.out.println(this.name);
        this.name = name;    // 设置教师名称
        System.out.println(this.name);
    }
}
